package com.tiger.utils 
{
	/**
	 * ...
	 * @author wmTiger
	 */
	public class VectorUtils 
	{
		
		public function VectorUtils() 
		{
			
		}
		
		public static function contains(vector:Vector.<Function>, value:Function):Boolean
		{
			var len:int = vector.length;
			
			for(var i:int = len - 1; i > -1; i--)
			{
				if(vector[i] === value)
				{
					return true;
				}
			}
			return false;
		}
		
		/**
		 * 删除向量数组<Function>中的某个Function
		 * @param	vector
		 * @param	value
		 */
		public static function removeValueFromFuncVector(vector:Vector.<Function>, value:Function):void
		{
			var len:int = vector.length;
			
			for(var i:int = len - 1; i > -1; i--)
			{
				if(vector[i] === value)
				{
					vector.splice(i, 1);
				}
			}					
		}
		
	}

}